package com.wyy.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wyy.beans.User;
import com.wyy.beans.UserRole;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserRoleDao extends BaseMapper<UserRole> {
    @Delete("delete from user_role where user_id = #{userId}")
    int deleteUserRoleByUserId(long userId);

    @Delete("delete from user_role where role_id = #{roleId}")
    int deleteUserRoleByRoleId(long roleId);
}
